package com.xiaobing.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 积分变更记录表
 * </p>
 *
 * @author tui
 * @since 2024-07-16
 */
@Getter
@Setter
@TableName("bonus_event_log")
@Schema(description = "积分变更记录表")
public class BonusEventLogEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description ="user.id")
    @TableField("user_id")
    private Integer userId;

    @Schema(description ="积分操作值")
    @TableField("value")
    private Integer value;

    @Schema(description ="发生的事件")
    @TableField("event")
    private String event;

    @Schema(description ="创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description ="描述")
    @TableField("description")
    private String description;
}
